import http from '@/utils/http';

// 修改密码
export const changePassword = async (data) => {
  try {
    const response = await http.post('/users/change-password', data);
    return response.data;
  } catch (error) {
    console.error('Error changing password:', error);
    throw error;
  }
};
